# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxpresent
pkgver=1.0.0
pkgrel=0
pkgdesc="A Xlib-compatible API for the Present extension"
url="http://xorg.freedesktop.org/"
arch="all"
license="MIT"
makedepends="
	libx11-dev
	libxext-dev
	libxfixes-dev
	libxrandr-dev
	util-macros
	xorgproto
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.x.org/releases/individual/lib/libXpresent-$pkgver.tar.bz2"
options="!check" # No test suite
builddir="$srcdir/libXpresent-$pkgver"

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="e88b4ec4fcbc0417a0cbecc0ecd73f8085c496dc6d1a4902b6550750a69a1cb8bb76c436c7941ee3bf3c61ffc85bbd8f8327fca30f14815dbef1cd53bb8db16b  libXpresent-1.0.0.tar.bz2"
